﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Maxleaf.EDI.API.Contract;
using Maxleaf.EDI.Admin.ExternalServices;
using TinyIoC;

namespace Maxleaf.EDI.Admin.App_Start
{
    public class TinyIoCConfiguration
    {
        public static readonly TinyIoCContainer Container = TinyIoCContainer.Current;

        public static void Configure()
        {
            Container.AutoRegister();
            ExternalServiceRegistration();
        }

        private static void ExternalServiceRegistration()
        {
            Container.Register<IAdminService, AdminService>();
        }
    }
}